import request from '@/utils/request'

// 查询邮箱配置列表
export function listEmailconfig(query) {
  return request({
    url: '/system/emailconfig/list',
    method: 'get',
    params: query
  })
}

// 查询邮箱配置详细
export function getEmailconfig(id) {
  return request({
    url: '/system/emailconfig/' + id,
    method: 'get'
  })
}

// 新增邮箱配置
export function addEmailconfig(data) {
  return request({
    url: '/system/emailconfig',
    method: 'post',
    data: data
  })
}

// 修改邮箱配置
export function updateEmailconfig(data) {
  return request({
    url: '/system/emailconfig',
    method: 'put',
    data: data
  })
}

// 删除邮箱配置
export function delEmailconfig(id) {
  return request({
    url: '/system/emailconfig/' + id,
    method: 'delete'
  })
}
